﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using Pampa.CRUD.Configuration;
using Pampa.MVC.Fluent.Common;
using Pampa.MVC.Fluent.Crud.Groups;

namespace Pampa.MVC.Fluent.Crud.Items
{
    public class ItemBuilder<TGroup, TEditor, TEntity> : AbstractBuilder
    {
        private readonly GroupBuilder<TGroup, TEditor> _group;
        private readonly Item _item;

        public ItemBuilder(Item item)
        {
            _item = item;
        }

        public ItemBuilder(GroupBuilder<TGroup, TEditor> group, Item item)
        {
            _group = group;
            _item = item;
        }

        protected GroupBuilder<TGroup, TEditor> ParentGroup
        {
            get { return _group; }
        }
    }
}
